@import './variable.less';

.estate_detail {
  background-color: #f1f1f1;

  .search {
    background-color: #fff;
    padding-bottom: 20px;
    margin-bottom: 20px;
  }

  .container {
    // margin-bottom: 20px;
    background-color: #f1f1f1;

    .first {
      padding: 20px;
      background-color: #fff;
      margin-bottom: 20px;

      .title {
        height: 28px;
        margin-bottom: 20px;

        .name {
          font-size: 28px;
          height: 28px;
          line-height: 28px;
          margin-right: 10px;
        }

        .address {
          height: 16px;
          line-height: 2.5;
        }
      }

      .nav {
        position: relative;
        height: 53px;
        margin-bottom: 30px;

        .e-topNav {
          height: 50px;
          padding-bottom: 1px;
          border-bottom: 2px solid @theme;
          width: 1160px;
          top: 0;
          z-index: 1000;
          background-color: #fff;
          // position: fixed;

          li {
            height: 50px;
            float: left;
            width: 100px;
            color: #000;
            text-align: center;
            line-height: 50px;
            cursor: pointer;

            &.active {
              background-color: @theme;
              color: #fff;
            }
          }
        }
      }

      .detail {
        width: 100%;

        // 图片展示盒子
        .img-box {
          width: 780px;
          height: 550px;

          .el-image {
            // active-img
            height: 450px;
            width: 780px;

            // 展示的图片
            >img {
              height: 100%;
              width: auto;
              display: block;
              margin: 0 auto;
            }
          }

          // 小图图片盒子
          .selection {
            margin-top: 10px;
            overflow: hidden;
            position: relative;

            // 左右箭头
            .el-icon-arrow-left,
            .el-icon-arrow-right {
              width: 24px;
              height: 90px;
              background-color: #000;
              opacity: .75;
              color: #fff;
              text-align: center;
              line-height: 90px;
              margin-right: 7px;
              cursor: pointer;

              &:hover {
                opacity: .5;
              }
            }

            .el-icon-arrow-right {
              float: right;
              margin-right: 0;
              // margin-left: 7px;
              // position: absolute;
              // right: 0;
            }

            .swiper {
              width: 718px;
              overflow: hidden;
              float: left;

              >ul {
                width: 1000%;
                height: 90px;
                transition: all .5s;

                >li {
                  float: left;
                  width: 116px;
                  height: 90px;
                  opacity: .5;
                  margin-right: 8px;
                  cursor: pointer;

                  &:last-child {
                    margin-right: 0;
                  }

                  &.active {
                    opacity: 1;
                  }

                  img {
                    max-width: 116px;
                    height: 100%;
                    display: block;
                    margin: 0 auto;
                  }
                }
              }
            }
          }
        }

        .info {
          width: 370px;

          .price {
            padding-bottom: 30px;
            border-bottom: 1px solid #ddd;
            margin-bottom: 30px;

            >span {
              font-size: 40px;
              font-weight: bold;
              color: #e03236;
            }
          }

          .detail2 {
            padding-bottom: 10px;
            margin-bottom: 30px;
            border-bottom: 1px solid #ddd;

            >p {
              margin-bottom: 15px;

              .ms1 {
                color: #9b9b9b;
                margin-right: 30px;
              }

            }
          }

          .agent {

            // 经纪人
            .a-avatar {
              width: 57px;
              height: 76px;
              cursor: pointer;
            }

            .a-info {
              height: 76px;
              width: 293px;
              position: relative;
              padding-left: 20px;

              .a-name {
                font-size: 18px;
                line-height: 1;
                color: #333;
                cursor: pointer;
                font-weight: bold;

                &:hover {
                  color: @theme;
                }
              }

              .a-des {
                font-size: 14px;
                position: absolute;
                transform: translateY(50%);
              }

              .a-phone {
                color: @theme;
                font-size: 20px;
                font-weight: bold;
                position: absolute;
                bottom: 0;
              }
            }

          }

          .btn {
            margin-top: 20px;

            >.el-button {
              width: 100%;
              color: #fff;
            }
          }
        }
      }
    }

    .content {
      width: 800px;
      margin-bottom: 50px;
      background-color: #fff;
      padding: 20px;

      .title {
        font-size: 30px;
        font-weight: bold;
        color: #000;
        height: 30px;
        line-height: 1;
        padding-bottom: 20px;
        // border-bottom: 1px solid #ddd;
      }

      .second {
        margin-bottom: 20px;

        .info,
        .desc {
          padding: 20px;
          width: 760px;
          border-bottom: 1px solid #ddd;

          .basics,
          .d-title {
            color: #9b9b9b;
            margin-right: 50px;
            width: 64px;
          }

          .detail1 {
            width: 646px;

            >p {
              float: left;
              width: 190px;
              font-size: 16px;
              height: 16px;
              line-height: 1;
              margin-bottom: 20px;
              margin-right: 20px;

              .ms1 {
                color: #9b9b9b;
                margin-right: 20px;
                font-size: 14px;
                width: 56px;
                height: 16px;
                line-height: 16px;
                float: left;
                text-align: justify;

                &::after {
                  display: inline-block;
                  width: 100%;
                  content: "";
                  height: 0;
                }
              }

              .ms2 {
                float: left;
                width: 114px;
                height: 16px;
              }
            }
          }

          .detail2 {
            width: 646px;

            >p {
              height: 16px;
              line-height: 1;
              margin-bottom: 20px;

              .ms1 {
                color: #9b9b9b;
                margin-right: 20px;
                font-size: 14px;
                width: 56px;
                height: 16px;
                line-height: 16px;
                float: left;
              }
            }
          }

          .tip {
            font-size: 13px;
            color: #9b9b9b;
          }

          .box-text {
            width: 646px;

            a {
              color: @theme;
              margin-left: 20px;
            }
          }

          .box-jt {
            margin-top: 20px;

            >span {
              margin-right: 20px;
            }

            .tip {
              margin-top: 20px;
            }
          }
        }
      }

      .third {
        margin-bottom: 20px;

        .list-box {
          width: 100%;

          >ul>li {
            width: 100%;
            height: 160px;
            padding: 20px 0;
            border-bottom: 1px solid #ddd;
            position: relative;

            .image {
              cursor: pointer;
              width: 200px;
              height: 160px;
            }

            .text {
              margin-left: 20px;

              h2 {
                cursor: pointer;
                margin-bottom: 10px;
                font-size: 26px;
                height: 26px;
                line-height: 1;

                &:hover {
                  color: @theme;
                }
              }

              >p {
                margin-bottom: 15px;
                height: 16px;
                line-height: 1;

                .line {
                  display: inline-block;
                  width: 1px;
                  height: 14px;
                  background: #ddd;
                  position: relative;
                  top: 2px;
                  margin: 0 5px;
                }

                &.labs {
                  .tag1 {
                    background-color: #00b16a;
                    color: #fff;
                  }

                  >span {
                    border: none;
                    border-radius: 0;
                    height: 28px;
                    margin-right: 10px;
                    line-height: 28px;
                    background-color: #c5eff7;
                    color: #049372;
                  }
                }
              }

            }

            .price {
              text-align: right;
              position: absolute;
              right: 30px;
              top: 80px;

              >p {
                margin-bottom: 5px;

                span {
                  color: #e03236;

                  b {
                    font-size: 30px;
                  }
                }
              }
            }
          }
        }
      }

      .fourth {
        margin-bottom: 20px;

        .name {
          cursor: pointer;

          &:hover {
            color: @theme;
          }
        }
      }

      .fifth {
        margin-bottom: 20px;

        .echarts {
          width: 800px;

          .growth {
            border-left: 1px solid #ddd;
            padding-left: 20px;

            .a_price {
              margin-top: 10px;

              >b {
                font-size: 24px;
                font-weight: blod;
              }

              .rate {
                margin-left: 20px;
              }
            }
          }

          #echart1 {
            width: 800px;
            height: 500px;
          }
        }
      }

      .sixth {
        ul>li {
          width: 31.33%;
          margin-right: 13px;
          float: left;

          &:last-child {
            margin-right: 0;
          }

          .img {
            width: 96px;
            height: 128px;
            margin-right: 10px;
          }

          .sup-agent-cont {
            >p {
              margin-bottom: 10px;
            }

            .name {
              font-size: 20px;
              font-weight: bold;
              color: #000;
            }

            .hp {
              font-size: 14px;
            }

            .cont {
              font-size: 14px;
              color: #9b9b9b;
            }

            .tel {
              color: @theme;
            }
          }
        }
      }
    }

    .info-box {
      width: 300px;
      padding: 20px;
      background-color: #fff;
      color: #000;
      margin-bottom: 20px;

      .hd {
        margin-bottom: 20px;

        .more {
          color: #9b9b9b;
        }
      }

      ul>li {
        margin-bottom: 10px;
        font-size: 12px;
        cursor: pointer;

        &:hover {
          color: @theme;
        }
      }

      .name {
        cursor: pointer;

        &:hover {
          color: @theme;
        }
      }

      .intro-box {
        margin-left: 15px;

        p {
          margin-bottom: 10px;
        }

        .name {
          font-weight: bold;
        }

        .cont {
          font-size: 14px;
          color: #9b9b9b;
        }

        .tel {
          color: @theme;
        }
      }

      .btn {
        >.el-button {
          width: 100%;
          color: #fff;
        }
      }
      &.fixedTop{
        position: fixed;
        top: 52px;
        right: 152px;
        z-index: 999;
      }
    }
  }
}